package com.example.demo.util;

public class Result {
    String code;
    String msg;
    Object data;
    public Result(String code, String msg, Object data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }
    public static Result success(Object data){
        return new Result("200","success",data);
    }
    public static Result fail(String msg){
        return new Result("500",msg,null);
    }
}
